package com.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author dengc
 * @since 2023-05-10
 */
@Getter
@Setter
@TableName("ams_photo")
@ApiModel(value = "Photo对象", description = "")
public class Photo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("用户姓名")
    private String username;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    @ApiModelProperty("预约摄影时间")
    private Date phototime;

    @ApiModelProperty("预约摄影项目id")
    private Integer photoproject;

    @ApiModelProperty("用户id")
    private Integer userid;

    @ApiModelProperty("摄影预约审批（1预约成功，0未审批，-1预约失败）")
    private Integer photoreserva;

    @ApiModelProperty("预约备注")
    private String photodesc;

    @ApiModelProperty("宠物种类id")
    private Integer petstypeid;

    @ApiModelProperty("月份")
    @TableField(exist = false)
    private String month;

    @ApiModelProperty("摄影服务用户数量")
    @TableField(exist = false)
    private Integer photocount;

}
